package com.example.demo;

import org.springframework.web.bind.annotation.*;


@RequestMapping("/user")
@RestController
public class UserController {
    @RequestMapping("/m1")
    public String m1(){
        return "m1";
    }
   @RequestMapping("/m2")
    public String m2(){
        return "m2";
   }
   //只支持GET
   @RequestMapping (value="/m3",method= RequestMethod.GET)
    public String m3(){
        return "m3";
   }
   //只支持POST
   @RequestMapping(value = "/m4",method=RequestMethod.POST)
    public String m4(){
        return "m4";
   }
   @GetMapping("/m5")
    public String m5(){
        return "m5";
   }
   @PostMapping("/m6")
    public String m6(){
        return "m6";
   }
}
